﻿<%@ Page Title="" Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true" CodeBehind="HelpCategoryList.aspx.cs"
 Inherits="SGDemo.Permission.HelpCategoryList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
 <script src="HelpCategoryList.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
 <div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Permission/Menu/HelpCategoryList.xml"
            PageCode="HelpCategoryList" />
    </div>
    <div class="ui-wrapper">
        <div id="listall" class="ui-content-item ui-content-item-selected">
            <dx:ASPxTreeList ID="tlList" Width="800px" ClientInstanceName="tlList" KeyFieldName="Keyid" DataSourceID="odsList"
                ParentFieldName="ParentKeyid" OnCustomCallback="tlList_CustomCallback" runat="server"><%--DataSourceID="odsList"--%>
                <Columns>
                    <dx:TreeListDataColumn FieldName="Keyid" Visible="false" />
                    <dx:TreeListDataColumn FieldName="ParentKeyid" Visible="false" />
                    <dx:TreeListDataColumn FieldName="HelpCategoryName" VisibleIndex="1" Caption="文档类别名称" />
                    <dx:TreeListDataColumn FieldName="HelpCategoryCode" VisibleIndex="2" Caption="文档类别编码" />
                    <dx:TreeListDataColumn FieldName="Order" VisibleIndex="3" Caption="排序" />
                </Columns>
                <ClientSideEvents NodeDblClick="doNodeDblClick" />
                <SettingsPager Mode="ShowAllNodes" />
                <Styles>
                    <PagerTopPanel>
                        <BorderBottom BorderStyle="Solid" />
                    </PagerTopPanel>
                    <PagerBottomPanel>
                        <BorderTop BorderStyle="Solid" />
                    </PagerBottomPanel>
                    <AlternatingNode Enabled="true" />
                </Styles>
                <Settings GridLines="Both" />
                <SettingsBehavior AllowFocusedNode="true" AutoExpandAllNodes="true" />
                <SettingsLoadingPanel Text="加载中..." />
            </dx:ASPxTreeList>
            <%--数据源控件--%>
            <asp:ObjectDataSource ID="odsList" runat="server" TypeName="SGDemo.Permission.HelpCategoryListDateSource"
                SelectMethod="FilteredGetAll">
                <SelectParameters>
                    <asp:ControlParameter Name="filterConditions" Type="String" ControlID="hfFilterCondition"
                        PropertyName="Value" ConvertEmptyStringToNull="false" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <%--存储过滤条件--%>
            <asp:HiddenField ID="hfFilterCondition" ClientIDMode="Static" runat="server" Value=" " />
            <%--TreeList数据导出--%>
            <dx:ASPxTreeListExporter ID="tleList" runat="server" TreeListID="tlList" FileName="帮助类别列表">
            </dx:ASPxTreeListExporter>
        </div>
    </div>
</asp:Content>
